package com.temp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.temp.dto.SearchDonationDTO;
import com.temp.entity.Donation;
import com.temp.vo.CustomPageVO;
import com.temp.vo.DonationDateVO;
import com.temp.vo.DonationUserVO;
import com.temp.vo.DonationVO;

import java.math.BigDecimal;
import java.util.List;

public interface DonationService extends IService<Donation> {

    CustomPageVO<DonationUserVO> findAllByCampaign(SearchDonationDTO donationDTO);

    BigDecimal countDonationByRobot(Long campaignId);

    CustomPageVO<Donation> findAllUserDonation(SearchDonationDTO donationDTO);

    DonationVO countOneSelfDonations(Long userId);

    List<DonationDateVO> countDonationDate(Long campaignId);
}
